﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Eirene.CLI.Services
{
    /// <summary>
    /// Text based io.
    /// </summary>
    public interface IWindowsConsole
    {
        /// <summary>
        /// Blocking call, awaiting data.
        /// </summary>
        string ReadLine();

        /// <summary>
        /// Write some text.
        /// </summary>
        /// <param name="str"></param>
        void Write(string outputText);

        /// <summary>
        /// Write a line of text.
        /// </summary>
        /// <param name="str"></param>
        void WriteLine(string outputText);

        /// <summary>
        /// Write a line of error text.
        /// </summary>
        /// <param name="str"></param>
        void WriteError(string outputText);
    }
}
